﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ZJRBTJ.aspx.cs" Inherits="Enterprise.UI.Web.Modules.ZuanjingRb.ZJRBTJ" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="/FCF/FusionCharts.js"></script>
    <script type="text/javascript" src="/Scripts/indexChart.js"></script>
    <script type="text/javascript">
        $(function ($) {
            loadchart();
            //loadrow(1);
        });
        function loadchart() {
            var title = "钻井日进尺变化曲线";
            //var xml = "<graph caption='" + title + "' yAxisName='m' showLabels='1' showNames='0' decimalPrecision='2'   formatNumberScale='2' showExportDataMenuItem='1' baseFontSize='12' showFCMenuItem='0'  showBorder='0' yAxisMaxValue='3200' labelStep='5'>";
            var xml = "<graph caption='" + title + "' showValues='1' showExportDataMenuItem='1' baseFontSize='9'  showYAxisValues='1'  labelDisplay='NOWRAP' placevaluesinside='2' labelStep='4' yAxisMaxValue='3200'>";
            var rows = $("#gv tr").length; //表格行数

            var cols = $("#gv tr:eq(0) th").length; //表格列数
            //alert(cols);
            for (var i = 1; i < rows - 1; i++) {
                var caption = $("#gv tr:eq(" + i + ") td").eq(0).text();
                var val = $("#gv tr:eq(" + i + ") td").eq(1).text(); //数值
                xml += "<set name='" + caption + "' value='" + val + "' link='n-Zjrblr.aspx?rq="+caption+"'/>";
            }
            xml += "</graph>";
            //alert(xml);

            chart(xml, "../../FCF/line.swf", 880, 400, "chartContainer");
        }
        function chart(xml, swf, width, height, chartdiv) {
            var chartObj = new FusionCharts(swf, "chartId", width, height, "0", "1");
            chartObj.setDataXML(xml);
            //alert(xml);
            chartObj.configure("ChartNoDataText", "no data to display");
            chartObj.render(chartdiv);
            $("#gv").hide();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
<div class="vDaohangtiaoHolder module">
                <div class="vDaohangtiao">
                    <ul>
                        <li class="first">
                            <a href="/index.aspx">首页</a>
                        </li>
                        <li>
                            专题信息
                        </li>
                        <li class="last">
                           工程信息
                        </li>                         
                    </ul>
                </div>
	</div>
    <div class="toolbars">
       <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/ZuanjingRb/ZjrbManage.aspx" >钻井日报管理</a>
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true" href="/Modules/ZuanjingRb/ZjrbTJ.aspx">钻井日报曲线查询</a>
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true" href="/Modules/ZuanjingRb/Zjrblr.aspx">钻井日报数据查询</a>
    </div>
    <div>
    <div style=" padding:5px;">
        <asp:Label ID="lb1txt" runat="server" Text="时间"></asp:Label>:<asp:TextBox ID="tb_rq1"
            runat="server" CssClass="easyui-datebox"></asp:TextBox><asp:TextBox ID="tb_rq2"
            runat="server" CssClass="easyui-datebox"></asp:TextBox>
        <asp:Button ID="btn_Search" runat="server" Text="搜索" 
            onclick="btn_Search_Click" CssClass="button2" /></div>
        <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Width="100%" ClientIDMode="Static" CssClass="htmlgrid">
            <Columns>
                <asp:BoundField DataField="ZJRQ" HeaderText="日期" >
                <ItemStyle Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="ZJJC" HeaderText="进尺" >
                <ItemStyle Wrap="False" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <div id="chartContainer">图表显示</div>
    </div>
</asp:Content>
